<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta name="author" content="hexinyang">
		<title>客户信息查询</title>
		<script language="javascript" type="text/javascript" src="../script/common.js"></script>
		<script language="javascript" type="text/javascript">
			//数据表格对象
			var qt = {};
			//页面加载方法				
			function load(){
				Eui.showNavigation();
				Common.initDict(searchForm.idnoType,"idno_type","请选择");         //初始化字典
				var list = [];
	   			var cardUser_type = Common.getItems("carduser_type");
	   			for (var i = 0;i<cardUser_type.length;i++){
	   				var d = cardUser_type[i];
					if(d.code!=CardUserType.DRIVER)
						list.push(d);
	  			}
				Common.initDict(searchForm.cardUserType,list,"请选择");
				createTable();			
			}
			//生成表格，创建QueryTable对象
			function createTable(){
				var columns = [];					
				columns[0]={type:"checkbox"};
				qt = new QueryTable("find_user_idno","searchForm","datalist",columns);
			}
			//显示、刷新表格
			function showData(){
				var v = $('cardUserType').value
				if(v==1){
					$('cuType').value = 'u'
				}else{
					$('cuType').value = 'p'
				}
				qt.showTable();									//qt为全局的QueryTable对象
			}	
		</script>
	</head>	
	<body onload="load()">
		<!--页面导航-->
		<div class="nav"><div id="nav">&nbsp;</div></div>
		<div id="listview">	
			<!--查询条件form-->
			<div class="searchForm">
				<form id="searchForm" name="searchForm">
				<input type="hidden" id="cuType" name="cuType">
				<table cellSpacing="0" cellPadding="4" width="100%" border="0" class="label4">
					<tr>
						<td><label>客户类型</label> <select name="cardUserType" onBlur="checkV(this,'',true)"><option></option></select><span class="des">*</span></td>
						<td><label>客户姓名</label> <input type="text" name="name" onBlur="checkV(this,'',true)"><span class="des">*</span></td>
					</tr>
					<tr>	
						<td><label>证件类型</label> <select name="idnoType" onBlur="checkV(this,'',true)"><option></option></select><span class="des">*</span></td>
						<td><label>证 件 号</label> <input type="text" name="idno" onBlur="checkV(this,$('idnoType').value,true)" ><span class="des">*</span></td>
						<td><input type="hidden" name = "dateEnd"><button type="button" onClick="showData()">查 询</button></td>
					</tr>
				</table>
				</form>
			</div>
			<div id="datalist"></div>	<!--查询结构列表-->		
		</div>	
	</body>
</html>
